const columns = [
  {
    title: "",
    width: "40px",
    dataIndex: "leftExt",
    ellipsis: false,
    scopedSlots: { customRender: "leftExt" }
  },
  {
    title: "订单类型",
    dataIndex: "afterSaleNumber",
    width: "150px",
    key: "afterSaleNumber",
    ellipsis: true,
    class: "bill-order",
    scopedSlots: { customRender: "afterSaleNumber" }
  },
  {
    title: "订单编号",
    dataIndex: "repairOrderNumber",
    key: "repairOrderNumber",
    width: "150px",
    ellipsis: true
  },
  {
    title: "客户单位",
    dataIndex: "companyName",
    key: "companyName",
    width: "180px",
    ellipsis: true
  },
  {
    title: "故障描述",
    dataIndex: "description",
    key: "description",
    width: "250px",
    ellipsis: true,
    class: "fault-description"
  },
  {
    title: "报修时间",
    dataIndex: "uploadTime",
    key: "uploadTime",
    width: "180px",
    ellipsis: true
  },
  {
    title: "订单状态",
    dataIndex: "state",
    key: "state",
    width: "150px",
    class: "bill-state",
    ellipsis: true,
    scopedSlots: { customRender: "state" }
  },
  {
    title: "操作",
    dataIndex: "operation",
    key: "operation",
    width: "200px",
    ellipsis: true,
    scopedSlots: { customRender: "operation" }
  },
  {
    title: "新建工单",
    dataIndex: "newBill",
    key: "newBill",
    width: "120px",
    ellipsis: true,
    scopedSlots: { customRender: "newBill" }
  },
  {
    title: "当前处理人",
    dataIndex: "appointor",
    key: "appointor",
    width: "150px",
    ellipsis: true
  },
  {
    title: "报修人姓名",
    dataIndex: "repairman",
    key: "repairman",
    width: "180px",
    ellipsis: true
  },
  {
    title: "报修人电话",
    dataIndex: "phoneNumber",
    key: "phoneNumber",
    width: "150px",
    ellipsis: true
  },
  {
    title: "机床型号",
    dataIndex: "macType",
    key: "macType",
    width: "240px",
    ellipsis: true
  },
  {
    title: "机床编号",
    dataIndex: "macNumb",
    key: "macNumb",
    width: "240px",
    ellipsis: true
  },
  {
    title: "机床厂家",
    dataIndex: "macFactory",
    key: "macFactory",
    width: "180px",
    ellipsis: true
  },
  {
    title: "机床位置",
    dataIndex: "address",
    key: "address",
    width: "180px",
    ellipsis: true
  },
  {
    title: "报修机床厂",
    dataIndex: "repairCompany",
    key: "repairCompany",
    width: "180px"
  },
  {
    title: "报单人员",
    dataIndex: "role",
    key: "role",
    width: "120px",
    ellipsis: true
  },
  {
    title: "设备购买时间",
    dataIndex: "purchaseTime",
    key: "purchaseTime",
    width: "180px",
    ellipsis: true
  },
  {
    title: "详细地址",
    dataIndex: "fullAddress",
    key: "fullAddress",
    width: "180px",
    ellipsis: true
  },
  {
    title: "系统型号",
    dataIndex: "ncSystemType",
    key: "ncSystemType",
    width: "180px",
    class: "hello",
    ellipsis: true
  },
  {
    title: "所属片区",
    dataIndex: "secondDepartment",
    key: "secondDepartment",
    width: "180px",
    ellipsis: true
  },
  {
    title: "任务类别",
    dataIndex: "taskType",
    key: "taskType",
    width: "180px",
    ellipsis: true
  },
  {
    title: "设备类型",
    dataIndex: "equipmentType",
    key: "equipmentType",
    width: "180px",
    ellipsis: true
  },
  {
    title: "保修状态",
    dataIndex: "guaranteeState",
    key: "guaranteeState",
    width: "180px",
    ellipsis: true
  },
  {
    title: "客户类型",
    dataIndex: "customerType",
    key: "customerType",
    width: "180px",
    ellipsis: true
  },
  {
    title: "信息来源",
    dataIndex: "informationSource",
    key: "informationSource",
    class: "hello",
    width: "180px",
    ellipsis: true
  },
  {
    title: "数控系统编号",
    dataIndex: "ncNumber",
    key: "ncNumber",
    width: "180px",
    ellipsis: true
  },
  {
    title: "数控系统版本",
    dataIndex: "ncVersionType",
    key: "ncVersionType",
    width: "180px",
    ellipsis: true
  },
  {
    title: "数控系统SN",
    dataIndex: "macSn",
    key: "macSn",
    width: "180px",
    ellipsis: true
  },
  {
    title: "故障件型号",
    dataIndex: "faultyPartsType",
    key: "faultyPartsType",
    width: "180px",
    ellipsis: true
  },
  {
    title: "故障件编号",
    dataIndex: "faultyPartsNumber",
    key: "faultyPartsNumber",
    width: "180px",
    ellipsis: true
  },
  {
    title: "故障件使用时间",
    dataIndex: "faultyPartsTime",
    key: "faultyPartsTime",
    width: "180px",
    ellipsis: true
  },
  {
    title: "处理时间",
    dataIndex: "resolveTime",
    key: "resolveTime",
    width: "180px",
    ellipsis: true
  },
  {
    title: "加班时间",
    dataIndex: "extraTime",
    key: "extraTime",
    width: "180px",
    ellipsis: true
  },
  {
    title: "设备处理数量",
    dataIndex: "resolveNcNumber",
    key: "resolveNcNumber",
    width: "180px",
    ellipsis: true
  },
  {
    title: "是否重大问题",
    dataIndex: "isViIssue",
    key: "isViIssue",
    width: "180px",
    ellipsis: true,
    scopedSlots: { customRender: "isViIssue" }
  },
  {
    title: "故障发生时间",
    dataIndex: "impedimentStartTime",
    key: "impedimentStartTime",
    width: "180px"
  },
  {
    title: "故障类型",
    dataIndex: "impedimentType",
    key: "impedimentType",
    width: "180px",
    ellipsis: true
  },
  {
    title: "故障分类",
    dataIndex: "faultClass",
    key: "faultClass",
    width: "180px",
    ellipsis: true
  },
  {
    title: "故障原因",
    dataIndex: "impedimentReason",
    key: "impedimentReason",
    width: "180px",
    ellipsis: true
  },
  {
    title: "故障处理结果",
    dataIndex: "impedimentResolveResult",
    key: "impedimentResolveResult",
    width: "180px",
    ellipsis: true
  },
  {
    title: "现场服务工程师",
    dataIndex: "fieldEngineer",
    key: "fieldEngineer",
    width: "150px",
    ellipsis: true
  },
  {
    title: "需求建议",
    dataIndex: "demandSuggestion",
    key: "demandSuggestion",
    width: "180px",
    ellipsis: true
  },
  {
    title: "其他描述",
    dataIndex: "otherDescription",
    key: "otherDescription",
    width: "180px",
    ellipsis: true
  },
  {
    title: "解决方案",
    dataIndex: "solution",
    key: "solution",
    width: "150px",
    ellipsis: true
  },
  {
    title: "重大专项课题名称",
    dataIndex: "topicName",
    key: "topicName",
    width: "150px",
    ellipsis: true
  },
  {
    title: "重大专项课题编号",
    dataIndex: "topicNumber",
    key: "topicNumber",
    width: "150px",
    ellipsis: true
  },
  {
    title: "重大专项应用领域",
    dataIndex: "applicationRange",
    key: "applicationRange",
    width: "180px",
    ellipsis: true
  },
  {
    title: "服务满意度",
    dataIndex: "serviceScore",
    key: "serviceScore",
    width: "150px"
  },
  {
    title: "服务回访备注",
    dataIndex: "serviceEvaluate",
    key: "serviceEvaluate",
    width: "150px",
    ellipsis: true
  },
  {
    title: "产品满意度",
    dataIndex: "produceScore",
    key: "produceScore",
    width: "150px"
  },
  {
    title: "产品回访备注",
    dataIndex: "produceEvaluate",
    key: "produceEvaluate",
    width: "150px",
    ellipsis: true
  }
];

const downloadColumns = [
  {
    title: "订单类型",
    fixed: "left",
    width: "150px",
    ellipsis: true,
    class: "bill-order",
    scopedSlots: { customRender: "afterSaleNumber" }
  },
  {
    title: "订单编号",
    fixed: "left",
    dataIndex: "repairList.repairOrderNumber",
    width: "150px",
    ellipsis: true
  },
  {
    title: "客户单位",
    dataIndex: "repairList.companyName",
    width: "180px",
    ellipsis: true
  },
  {
    title: "故障描述",
    dataIndex: "repairList.description",
    width: "250px",
    ellipsis: true,
    class: "fault-description"
  },
  {
    title: "报修时间",
    dataIndex: "repairList.uploadTime",
    width: "180px",
    ellipsis: true
  },
  {
    title: "订单状态",
    dataIndex: "repairList.state",
    width: "150px",
    class: "bill-state",
    ellipsis: true,
    scopedSlots: { customRender: "state" }
  },
  {
    title: "操作",
    width: "200px",
    ellipsis: true,
    scopedSlots: { customRender: "operation" }
  },
  {
    title: "新建工单",
    width: "120px",
    ellipsis: true,
    scopedSlots: { customRender: "newBill" }
  },
  {
    title: "当前处理人",
    dataIndex: "appointor",
    width: "150px",
    ellipsis: true
  },
  {
    title: "报修人姓名",
    dataIndex: "repairList.repairman",
    width: "180px",
    ellipsis: true
  },
  {
    title: "报修人电话",
    dataIndex: "repairList.phoneNumber",
    width: "150px",
    ellipsis: true
  },
  {
    title: "机床型号",
    dataIndex: "repairList.macType",
    width: "240px",
    ellipsis: true
  },
  {
    title: "机床编号",
    dataIndex: "repairList.macNumb",
    width: "240px",
    ellipsis: true
  },
  {
    title: "机床厂家",
    dataIndex: "repairList.macFactory",
    width: "180px",
    ellipsis: true
  },
  {
    title: "机床位置",
    dataIndex: "repairList.address",
    width: "180px",
    ellipsis: true
  },
  {
    title: "报修机床厂",
    dataIndex: "repairList.repairCompany",
    width: "180px"
  },
  {
    title: "报单人员",
    dataIndex: "role",
    key: "role",
    width: "120px",
    ellipsis: true
  },
  {
    title: "设备购买时间",
    dataIndex: "repairList.purchaseTime",
    width: "180px",
    ellipsis: true
  },
  {
    title: "详细地址",
    dataIndex: "repairList.fullAddress",
    width: "180px",
    ellipsis: true
  },
  {
    title: "系统型号",
    dataIndex: "repairList.ncSystemType",
    width: "180px",
    class: "hello",
    ellipsis: true
  },
  {
    title: "所属片区",
    dataIndex: "afterSaleService.ownDistrict",
    width: "180px",
    ellipsis: true
  },
  {
    title: "任务类别",
    dataIndex: "afterSaleService.taskType",
    width: "180px",
    ellipsis: true
  },
  {
    title: "设备类型",
    dataIndex: "afterSaleService.equipmentType",
    width: "180px",
    ellipsis: true
  },
  {
    title: "保修状态",
    dataIndex: "afterSaleService.guaranteeState",
    width: "180px",
    ellipsis: true
  },
  {
    title: "客户类型",
    dataIndex: "afterSaleService.customerType",
    width: "180px",
    ellipsis: true
  },
  {
    title: "信息来源",
    dataIndex: "afterSaleService.informationSource",
    class: "hello",
    width: "180px",
    ellipsis: true
  },
  {
    title: "数控系统编号",
    dataIndex: "afterSaleService.ncNumber",
    width: "180px",
    ellipsis: true
  },
  {
    title: "数控系统版本",
    dataIndex: "afterSaleService.ncVersionType",
    key: "ncVersionType",
    width: "180px",
    ellipsis: true
  },
  {
    title: "数控系统SN",
    dataIndex: "afterSaleService.macSn",
    width: "180px",
    ellipsis: true
  },
  {
    title: "故障件型号",
    dataIndex: "afterSaleService.faultyPartsType",
    width: "180px",
    ellipsis: true
  },
  {
    title: "故障件编号",
    dataIndex: "afterSaleService.faultyPartsNumber",
    width: "180px",
    ellipsis: true
  },
  {
    title: "故障件使用时间",
    dataIndex: "afterSaleService.faultyPartsTime",
    width: "180px",
    ellipsis: true
  },
  {
    title: "处理时间",
    dataIndex: "afterSaleService.resolveTime",
    width: "180px",
    ellipsis: true
  },
  {
    title: "加班时间",
    dataIndex: "afterSaleService.extraTime",
    width: "180px",
    ellipsis: true
  },
  {
    title: "设备处理数量",
    dataIndex: "afterSaleService.resolveNcNumber",
    width: "180px",
    ellipsis: true
  },
  {
    title: "是否重大问题",
    dataIndex: "afterSaleService.isViIssue",
    width: "180px",
    ellipsis: true,
    scopedSlots: { customRender: "isViIssue" }
  },
  {
    title: "故障发生时间",
    dataIndex: "afterSaleService.impedimentStartTime",
    width: "180px"
  },
  {
    title: "故障类型",
    dataIndex: "afterSaleService.impedimentType",
    width: "180px",
    ellipsis: true
  },
  {
    title: "故障分类",
    dataIndex: "afterSaleService.faultClass",
    width: "180px",
    ellipsis: true
  },
  {
    title: "故障原因",
    dataIndex: "afterSaleService.impedimentReason",
    width: "180px",
    ellipsis: true
  },
  {
    title: "故障处理结果",
    dataIndex: "impedimentResolveResult",
    key: "impedimentResolveResult",
    width: "180px",
    ellipsis: true
  },
  {
    title: "维修人员信息",
    dataIndex: "engineers",
    width: "auto",
    scopedSlots: { customRender: "engineers" },
    ellipsis: false,
    class: "fault-description"
  },
  {
    title: "需求建议",
    dataIndex: "afterSaleService.demandSuggestion",
    width: "180px",
    ellipsis: true
  },
  {
    title: "其他描述",
    dataIndex: "afterSaleService.otherDescription",
    width: "180px",
    ellipsis: true
  },
  {
    title: "解决方案",
    dataIndex: "afterSaleService.solution",
    width: "150px",
    ellipsis: true
  },
  {
    title: "重大专项课题名称",
    dataIndex: "afterSaleService.topicName",
    width: "200px",
    ellipsis: true
  },
  {
    title: "重大专项课题编号",
    dataIndex: "afterSaleService.topicNumber",
    width: "200px",
    ellipsis: true
  },
  {
    title: "重大专项应用领域",
    dataIndex: "afterSaleService.applicationRange",
    width: "200px",
    ellipsis: true
  },
  {
    title: "服务满意度",
    dataIndex: "evaluation.serviceScore",
    customRender: (text, row, index) => {
      return text + "分";
    }
  },
  {
    title: "服务回访备注",
    dataIndex: "evaluation.serviceEvaluate",
    width: "150px",
    ellipsis: true
  },
  {
    title: "产品满意度",
    dataIndex: "evaluation.produceScore",
    width: "150px",
    customRender: (text, row, index) => {
      return text + "分";
    }
  },
  {
    title: "产品回访备注",
    dataIndex: "evaluation.produceEvaluate",
    width: "150px",
    ellipsis: true
  }
];

export { columns, downloadColumns };
